package ro.upt.ac.cstaicu.analyze;

public class JaccardTechnique extends SpectrumBasedFLTechnique {

	@Override
	public double computeSuspiciousness(Entity e, double totalPassed,
			double totalFailed) {
		return e.getNoFailed() / (totalFailed + e.getNoPassed());
	}

	@Override
	public double computeSuspiciousnessSingleError(Entity e, double totalPassed) {
		return 1 / (1 + e.getNoPassed());
	}
	
}
